<template>
	<view class="content">
		<view class="class-box">
			<view class="class-item" @click="goLogin">
				<image class="class-img" src="/static/class/1.png"></image>
				<view class="class-title">症状自诊</view>
			</view>
			<view class="class-item">
				<image class="class-img" src="/static/class/2.png"></image>
				<view class="class-title">解决方案</view>
			</view>
			<view class="class-item">
				<image class="class-img" src="/static/class/3.png"></image>
				<view class="class-title">健康管理</view>
			</view>
			<view class="class-item">
				<image class="class-img" src="/static/class/4.png"></image>
				<view class="class-title">联系我们</view>
			</view>
		</view>
		<view class="body-img">
			<image class="body-img" src="/static/home_bg2.png" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			goLogin:function(){
				uni.chooseImage({
				    count: 1, 
				    sizeType: ['compressed'], //可以指定是原图还是压缩图，默认二者都有
				    sourceType: ['camera'], //从相册选择
				    success: function (res) {
				        
				    }
				});
			}
		}
	}
</script>

<style>
	page{
		background-color: #051224;
	}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.class-box{
		width: 100%;
		display: flex;
		padding: 30rpx 0rpx 20rpx 0rpx;
		justify-content: space-around;
		background-color: #091d38;
	}
	.class-item{
		display: flex;
		flex-direction: column;
		align-items: center;
		
	}
	.class-title{
		margin-top: 10rpx;
		font-size: 28rpx;
		color: #FFFFFF;
	}
	.class-img{
		height: 150rpx;
		width: 150rpx;
	}
	.body-img{
		width: 100%;
		height: 200rpx;
	}
</style>
